#include <bits/stdc++.h>
using namespace std;

int main()
{
    string s;
    cin >> s;
    queue<char> a;
    int i = 0;
    int n = s.size();
    while (i != n)
    {
         a.push(s[i++]);
        if (a.size() >= 3 && a.front() == 'E')
        {
            a.pop();
            if (a.front() == 'U')
            {
                a.pop();
                if (a.front() == 'H')
                {
                    a.pop();
                    continue;
                }
                a.push('U');
            }
            a.push('E');
        }
    }
    while (!a.empty())
    {
        cout << a.front();
        a.pop();
    }
    return 0;
}